//更改用户状态信息
export const userStatus = (state, user) =>{
    //判断用户是否存在
    if (user!=null){
        state.userInfo = user;
		state.token = user.token;
		state.isLogin = true;
    }else if (user==null){
        state.userInfo = null;
		state.token = "";
		state.isLogin = false;
		localStorage.setItem('store', null)
    }
}
//更改系统配置信息
export const websiteStatus = (state, website) =>{
    //判断用户是否存在
    if (website!=null){
        state.website = website;
    }else{
        state.website = null;
    }
}
//更改tabs标签
export const tabsStatus = (state, tabsObj) =>{
    state.tabs = tabsObj.editableTabs;
    state.tabActive = tabsObj.editableTabsValue;
}